//
//  JMHttpTool.h
//  萌妹微博
//
//  Created by 张家铭 on 15/12/8.
//  Copyright © 2015年 张家铭. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JMParam.h"

@interface JMHttpTool : NSObject

+(NSString *)staues;
+ (void)get:(NSString *)url param:(NSDictionary *)params success:(void(^)(id responseObject))success frail:(void(^)(NSError *error))fail;

+ (void)post:(NSString *)url param:(NSDictionary *)params success:(void(^)(id responseObject))success frail:(void(^)(NSError *error))fail;

+ (void)requestWithParameter:(NSMutableArray *)param success:(void(^)(JMParam *result))success failure:(void(^)(NSError *error))failure;
@end
